﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.Models.LyModel
{
    [Table("T_PurchaseOrderItem")]
    /// <summary>
    /// 采购订单项表
    /// </summary>
    public class PurchaseOrderItem:BaseEntity
    {

        public int PurchaseOrderId { get; set; } // 外键，指向 PurchaseOrder
        [StringLength(20)]
        public string ProductName { get; set; } // 商品名称
        public int Quantity { get; set; } // 数量
        public decimal UnitPrice { get; set; } // 单价
        public decimal TotalPrice { get; set; } // 总价（Quantity * UnitPrice）
    }
}
